-
Notifications
You must be signed in to change notification settings - Fork 186
Add post processing logic for aggregation query. #346
Add post processing logic for aggregation query. #346
Conversation
src/main/java/com/amazon/opendistroforelasticsearch/sql/expression/domain/BindingTuple.java
Outdated
Show resolved
Hide resolved
src/main/java/com/amazon/opendistroforelasticsearch/sql/expression/domain/BindingTuple.java
Outdated
Show resolved
Hide resolved
src/main/java/com/amazon/opendistroforelasticsearch/sql/expression/model/ExprValue.java
Show resolved
Hide resolved
...amazon/opendistroforelasticsearch/sql/query/planner/physical/node/scroll/PhysicalScroll.java
Outdated
Show resolved
Hide resolved
...forelasticsearch/sql/query/planner/physical/node/scroll/SearchAggregationResponseHelper.java
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for adding this important feature!
} | ||
} | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does it work if the number of parameters in basic arithmetic expressions is indeterminate? eg. max(field_1) + max(field_2) + max(field_3) + ...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, it will be compile as add(max(field_1),add(max(field_2),max(field_3)).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks!
Issue #, if available:
Description of changes:
Problem Statement
Support expression over aggregation function is an important feature has been request a lot by customer. The current SQL engine try to translate all the expression to painless script if possible which limit the implementation. This PR works on add the post processing logic into the current framework for aggregation query which is the first step to enable the expression over aggregation function support.
Change Notes
Integration Test changes
Todo
The next PR will address the following pieces
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.